package com.mybatis.mapper;

import com.mybatis.entity.AwardPunish;
import com.mybatis.entity.Sstatus;
import com.mybatis.entity.StudentVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface AwardPunishMapper {

    AwardPunish getOne(AwardPunish awardPunish);

    Integer getSearchSize(AwardPunish sstatus);

    List<AwardPunish> getSearchPage(AwardPunish awardPunish);

    List<AwardPunish> getList();

    List<AwardPunish> getPage(@Param("page") int page);

    @Select("select count(*) from award_punish")
    Integer getSize();

    void insert(AwardPunish awardPunish);

    String getMax();

    AwardPunish getBySno(@Param("sno") String sno);

    Integer getapno();

    void update(AwardPunish awardPunish);

    void delete(@Param("sno") String sno);
}
